package com.zsc.manage.domain.entity;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zsc.common.annotation.Excel;
import com.zsc.common.core.domain.BaseEntity;

/**
 * 购物车对象 store_shopping_cart
 *
 * @author zsc
 * @date 2024-11-09
 */
public class ShoppingCart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 图片 */
    @Excel(name = "图片")
    private String image;

    /** 用户ID（这里应该是主键的一部分或者外键，但根据类定义不清楚其确切用途） */
    @Excel(name = "用户ID", readConverterExp = "这=里应该是主键的一部分或者外键，但根据类定义不清楚其确切用途")
    private Long userId;

    /** 菜品ID */
    @Excel(name = "菜品ID")
    private Long dishId;

    /** 数量 */
    @Excel(name = "数量")
    private Long number;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDishId(Long dishId)
    {
        this.dishId = dishId;
    }

    public Long getDishId()
    {
        return dishId;
    }
    public void setNumber(Long number)
    {
        this.number = number;
    }

    public Long getNumber()
    {
        return number;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("image", getImage())
            .append("userId", getUserId())
            .append("dishId", getDishId())
            .append("number", getNumber())
            .append("amount", getAmount())
            .append("createTime", getCreateTime())
            .toString();
    }
}
